import {Message} from 'element-ui'

export class Msg {
  static success (message) {
    Message({
      message,
      type: 'success'
    })
  }

  static error (message) {
    Message({
      message,
      type: 'error'

    })
  }

  static warn (message, title) {
    Message({
      message,
      type: 'warning'
    })
  }

  static info (message, title) {
    Message({
      message,
      type: 'info'
    })
  }
}
